﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace DataAccessLayer
{
    [Serializable, XmlType("Wave")]
    public sealed class LevelWave
    {
        [XmlAttribute("WaveId")]
        public int Id;

        [XmlElement("WaveStartTime")]
        public float StartTime { get; set; }

        [XmlArray("EnemySets"), XmlArrayItem("EnemySet")]
        public List<EnemySpawnSet> EnemySets { get; set; }

        public LevelWave()
        {
            Id = 0;

            StartTime = 0;

            EnemySets = new List<EnemySpawnSet>();
        }
    }
}